package com.xqls.biz;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xqls.dal.model.FlowRecord;
import com.xqls.util.CommonPage;
import com.xqls.util.CommonResult;

public interface FlowRecordBiz {
	/**
	 * 查询分钟数据列表
	 * @param commonPage
	 * @return
	 */
	public CommonResult getFlowRecordByPage(CommonPage commonPage, HttpServletRequest request, HttpServletResponse response);
	/**
	 * 查询小时记录列表
	 * @param commonPage
	 * @return
	 */
	public CommonResult getHourFlowRecordByPage(CommonPage commonPage, HttpServletRequest request, HttpServletResponse response);
	/**
	 * 查询日记录列表
	 * @param commonPage
	 * @return
	 */
	public CommonResult getDayFlowRecordByPage(CommonPage commonPage, HttpServletRequest request, HttpServletResponse response);
	/**
	 * 查询月统计
	 * @param commonPage
	 * @return
	 */
	public CommonResult getMonthFlowRecordByPage(CommonPage commonPage, HttpServletRequest request, HttpServletResponse response);
	/**
	 * 查询年统计
	 * @param commonPage
	 * @return
	 */
	public CommonResult getYearFlowRecordByPage(Map<String, Object> commonPage, HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 生成记录
	 * @return
	 */
	public CommonResult generateRecord(Map<String, Object> map);
	
	
	void getMinuteFlowRecordByMap(HttpServletRequest request,HttpServletResponse response,Map<String, Object> map);
	
	void getHourFlowRecordByMap(HttpServletRequest request,HttpServletResponse response,Map<String, Object> map);
	
	void getDayFlowRecordByMap(HttpServletRequest request,HttpServletResponse response,Map<String, Object> map);
	
	void getMonthFlowRecordByMap(HttpServletRequest request,HttpServletResponse response,Map<String, Object> map);
	
	void getYearFlowRecordByMap(HttpServletRequest request,HttpServletResponse response,Map<String, Object> map);
	
	public FlowRecord selflow(String deviceNo,String closeMonth);
}
